package client

// App 客户端应用.
type App struct {
	as *Service
}

// NewApp 新建应用.
func NewApp(
	as *Service,
) *App {
	return &App{
		as: as,
	}
}

// Run 运行.
// nolint: wrapcheck
func (a *App) Run() error {
	// return a.gs.RunFS(pp.StaticWWW())
	defer a.as.Close()

	return a.as.Run()
}
